﻿using PoemGame.ComputerAnswer.Shared;
using System;

namespace PoemGame.ComputerAnswer.Xml
{
    public class ComputerAnswerFactory : IComputerAnswerFactory
    {
        public IComputerAnswer Create(string gametype)
        {
            switch (gametype)
            {
                case "Duishi":
                    return new ComputerAnswerDuishi();
                case "Jielong":
                    return new ComputerAnswerJielong();
                default:
                case "Feihualing":
                    return new ComputerAnswerFeihualing();

            };
        }
    }
}
